<template>
	<view class="full-page" v-if="totalPage">
		
	</view>
	<view class="content" v-else>
		<u-navbar bgColor="#fff" :placeholder="true" :fixed="true" @leftClick="$back" title="关于我们" titleStyle="{'color': '#000'}">
			
		</u-navbar>
		<view class="empytView">
			<image src="/static/image/logo.png" mode="widthFix" />
			<view class="text1">dream约文</view>
			<view class="text2">1.0</view>
		</view>
		<view class="xunli" v-for="(item,index) in logList">
			<view class="topbox" @click="shownei(item)">
				<view class="time">
					{{item.name}}
				</view>
			
				<image :src="'/images/rarr.png' | formatImgUrl" class="rarr" mode="">
				</image>
			</view>
			
		</view>

		<view class="nomore" >
			<!-- <view v-for="(item,index) in kf">
				<view v-if="item.name=='kf_mobile'">
						客服电话： <span class="gl">{{item.data}}</span>
				</view>
				<view v-if="item.name=='kf_qq'">
						客服QQ： <span class="gl">{{item.data}}</span>
				</view>
			</view>
			<view>
				
			</view>
			<view class="bom">
				版本信息：1.01
			</view> -->
			
			<view class="bom">
				客服邮箱：dream@dreamyuewen.com
			</view>
			<view class="bom">
				ICP备案号：豫ICP备2023017107号-3A
			</view>
		</view>
		
	</view>
</template>
<script>
	export default {
		data() {
			return {
				page: 1,
				// list: {},
				logList: [
					{
						id:0,
						name:"Dream约文用户服务协议"
					},
					{
						id:1,
						name:"Dream约文用户隐私政策"
					},
					
				],
				selId: 0,
				kf:"",
				totalPage: true
			}
		},
		onLoad() {},
		onShow() {
			this.getList()
		},
		// 上拉加载
		onReachBottom() {
			if (this.list.current_page < this.list.last_page) {
				this.page++; // 页数加一，加载下一页数据
				this.getGroupArticle();
			}
		},
		methods: {
			getList() {
				this.$api.default.request('index/getxieyi', {
					page: this.page
				}, 'POST', false).then((res) => {
					if (res.code) {
						this.logList = res.data
						this.kf = res.kf
					}
					
					this.totalPage = false
				})
			},
			shownei(item) {
				uni.navigateTo({
					url: '/pages/user/abount_dea?id='+item.id
				})
			}
		}
	}
</script>

<style lang="scss">
	page {
		background: rgba(242, 245, 242, 1);
	}

	.content {
		.nomore{
			margin-top: 100px;
			font-size: 10px;
			color: #999;
			.bom{
				margin-top: 8px;
			}
		}
		.gl{
			color: #45C4B0;
		}
		padding-top: 20rpx;
		.empytView{
			image{
				width:90px;
				padding-bottom:0px;
			}
			.text1{
				margin-top: -10px;
				font-weight: 700;
				color: #000;
				padding-bottom: 0px;
			}
			.text2{
				font-size: 14px;
			}
		}

		.xunli {
			background-color: #ffffff;
			border: 1px solid rgba(153, 153, 153, 0.1);
			margin-bottom: 0rpx;

			.topbox {
				padding: 40rpx 68rpx;
				display: flex;
				align-items: center;
				justify-content: space-between;

				.time {
					font-size: 28rpx;
					font-weight: bold;
					letter-spacing: 0em;
					color: #3D3D3D;
					flex-shrink: 0;
				}

				.txt {
					flex-grow: 1;
					font-size: 28rpx;
					font-weight: normal;
					text-align: right;
					color: #999999;
					padding: 0 20rpx;
				}

				.active {
					color: #45C4B0;
				}

				.rarr {
					width: 40rpx;
					height: 40rpx;
					flex-shrink: 0;
				}

				.xuan {
					transform: rotate(90deg);
				}
			}

			.yinbox {
				box-shadow: 0px 8px 20px 0px rgba(0, 0, 0, 0.07) inset;
				padding: 40rpx 68rpx;

				.yintitle {
					font-size: 32rpx;
					font-weight: bold;
					letter-spacing: 0em;
					color: #3D3D3D;
				}

				.dengtxt {
					font-size: 24rpx;
					font-weight: normal;
					letter-spacing: 0em;
					color: #999999;
					padding-bottom: 12rpx;
				}

				.daotxt {
					font-size: 24rpx;
					font-weight: normal;
					letter-spacing: 0em;
					color: #3D3D3D;
					line-height: 34rpx;
				}
			}
		}
	}
</style>